<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GinSession演示</title>
</head>
<body>
    <h2>GinSession演示 取值</h2>
    <p>当前cookie有效期内您的访问次数为：{{.pv}}</p>
    <p ><span id="str">{{.str}}</span> <button id="btn" onclick="del()"> 删除此项  </button></p>
    <p>{{.int}}</p>
    <p>{{.bool}}</p>
    <p>{{.arr}}</p>

    <p><a href="/get">刷新</a></p>
    <p><a href="/clear">清空</a></p>
    <p><a href="/flash">查看闪存数据</a></p>
    <p><a href="/">返回重设</a></p>
</body>
<script>
    if(str.innerHTML==""){
        btn.style.display="none"
    }
    function del(){
        window.location.href="/del"
    }
</script>
</html>
</html>